package com.ynny.demo09;

import com.sun.source.tree.IfTree;

public class MyStringTest {
    public static void main(String[] args) {
        String s1 = "hello java";
        String s2 = "hello java";
        if (s1.equals(s2)){
            String S1 = s1.replace(" ", "");
            String S1ras = s1.replace("java","word");
            System.out.println(S1);
            System.out.println(S1ras);
        }

    }
}

